|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.ParameterModel
public class ParameterModel
This class represents the description of a parameter. Each parameter description specifies a type for the parameter. Don't use 'ParameterName' on a subscription parameter or on a charge activation parameter. This attribute has to be used only when building offers.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="parameter">
<xs:complexType>
<xs:sequence>
<xs:element ref="additionalInformation" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="value" type="xs:string" />
<xs:attribute name="type" type="ParameterType" default="string"/>
<xs:attribute name="isPrivate" type="xs:boolean" default="false"/>
<xs:attribute name="parameterName" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="ParameterType">
<xs:restriction base="xs:string">
<xs:enumeration value="number"/>
<xs:enumeration value="string"/>
<xs:enumeration value="date"/>
</xs:restriction>
</xs:simpleType>
| Field Summary | |
|---|---|
static java.lang.String |
TAG_NAME
The value of that constant is the XML tag name of the parameter. |
| Constructor Summary | |
|---|---|
ParameterModel()
Builds an empty ParameterModel. |
|
ParameterModel(java.lang.String name,
int type,
boolean isPrivate)
Builds a ParameterModel. |
|
ParameterModel(java.lang.String name,
java.lang.String description,
int type,
java.lang.Object value,
boolean isPrivate,
java.lang.String parameterName)
Builds a ParameterModel. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String name,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
boolean |
checkValidity()
Tests if the parameter is valid (non void name, incompatible type, value...). |
ParameterModel |
duplicate()
Returns a clone of the parameter. |
java.util.List<AdditionalInfoModel> |
getAdditionalInfoList()
Gets the list of Additional Informations. |
java.util.Date |
getDateValue()
Returns the parameter default value seen as a Date if it is possible. |
java.lang.String |
getDescription()
Returns the description of this parameter. |
java.lang.String |
getName()
Returns the name of the parameter. |
java.math.BigDecimal |
getNumberValue()
Returns the parameter default value seen as a BigDecimal if it is possible. |
java.lang.String |
getParameterName()
Returns the mapped parameter name. |
java.lang.String |
getStringValue()
Returns the parameter default value seen as a String if it is possible. |
int |
getType()
Returns the type of the parameter. |
java.lang.Object |
getValue()
Returns the parameter value. |
boolean |
isPrivate()
Returns the visibility of the parameter. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setDescription(java.lang.String description)
Sets the description of this parameter. |
void |
setName(java.lang.String name)
Sets the name of the parameter. |
void |
setParameterName(java.lang.String parameterName)
Sets the mapped parameter name. |
void |
setPrivate(boolean isPrivate)
Sets the parameter visibility. |
void |
setType(int t)
Sets the type of the parameter. |
void |
setValue(java.lang.Object value)
Sets the parameter value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAG_NAME
| Constructor Detail |
|---|
public ParameterModel()
public ParameterModel(java.lang.String name,
java.lang.String description,
int type,
java.lang.Object value,
boolean isPrivate,
java.lang.String parameterName)
name - name of the parameter.description - description of the parameter.type - the type of the parameter according to constants described below.value - the value of the parameter.isPrivate - the visibility of the parameter.parameterName - the name of the mapped parameter.
public ParameterModel(java.lang.String name,
int type,
boolean isPrivate)
name - name of the parameter.type - the type of the parameter according to constants described below.isPrivate - the visibility of the parameter.| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - public int getType()
public void setType(int t)
t - the parameter type.public java.lang.String getDescription()
setDescription(String)public void setDescription(java.lang.String description)
description - getDescription()public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - the parameter value.public java.lang.String getStringValue()
public java.math.BigDecimal getNumberValue()
public java.util.Date getDateValue()
public java.lang.String getParameterName()
public void setParameterName(java.lang.String parameterName)
parameterName - the name of the mapped parameter.public boolean isPrivate()
true if the parameter is private.public void setPrivate(boolean isPrivate)
isPrivate - the level of the visibility.public boolean checkValidity()
true if the parameter is valid,
false otherwise.public ParameterModel duplicate()
public java.util.List<AdditionalInfoModel> getAdditionalInfoList()
Additional Informations.
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String name,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallablename - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||